/*
 * bar.h
 *
 *  Created on: Jan 6, 2012
 *      Author: ian
 */

#ifndef BAR_H_
#define BAR_H_


typedef struct {
	unsigned char x, y, w, h;
	unsigned char value;
	bool redraw;
	unsigned char normalLow;
	unsigned char normalHigh;
	unsigned int colorLow;
	unsigned int colorNormal;
	unsigned int colorHigh;
} stBar;


void BAR_init( stBar *bar );
void BAR_update( stBar *bar, unsigned char newval );


#endif /* BAR_H_ */
